//
//  UserModel.m
//  1-MushroomStreet-自定义tabbar
//
//  Created by xmg on 16/1/27.
//  Copyright © 2016年 grx. All rights reserved.
//

#import "UserModel.h"

@implementation UserModel

//设置认证图片标签
- (NSString *)verifiedImage{

    NSInteger verified =  self.verified_type;
    
    switch (verified) {
        case 0:
            return @"avatar_vip";
            
        case 2:
        case 3:
        case 5:
            return @"avatar_enterprise_vip";
            
        case 220:
            return @"avatar_grassroot";
            
        default:
            return nil;
    }
}

//设置会员等级标签
- (NSString *)mbrankImage{
    
    NSInteger mbNumber = self.mbrank;
    
    switch (mbNumber) {
        case 1:
            return @"common_icon_membership_level1";
            
        case 2:
            return @"common_icon_membership_level2";
            
        case 3:
            return @"common_icon_membership_level3";
            
        case 4:
            return @"common_icon_membership_level4";
            
        case 5:
            return @"common_icon_membership_level5";
            
        case 6:
            return @"common_icon_membership_level6";
            
        default:
            return @"common_icon_membership_expired";
    }
}

@end
